import java.util.regex.Matcher
import java.util.regex.Pattern

def errorMsg = '您好，您投保的车辆在相同保险期内投保了交强险，保险期限至2016-02-19 00，不能提前投保交强险。请2016-02-18您检查车牌号/发动机号/车架号等信息填写是否正确，如有疑问请联系“在线客服”咨询。'
def _PATTERN_ERROR_MESSAGE     = /.*(\d{4}-\d{2}-\d{2}).*/
def a = errorMsg =~ _PATTERN_ERROR_MESSAGE
println a.matches()
println a[0][1]

def list1 = [1,3,4,5,6,7]
def list2 = [123,2,3,3,4,5,5]
println list1 + list2

def str = '  1'
def pattern = /\\s{2,}|\t|\r|\n/
def teststr = str =~ pattern
println teststr.replaceAll("")

Pattern p = Pattern.compile("\\s{2,}|\t|\r|\n");
Matcher m = p.matcher(str);
println m.replaceAll("");

//匹配中文及其标点
def msg = 'com.castalia.base.exception.CastaliaException: 查询参数不正确（核定载客）！--当是本地车时，载客量应该与交警库中的载客量一致!'
def pattern1 = /([\u4e00-\u9fa5]|[\uFE30-\uFFA0])+/
def mat = msg =~ pattern1
println mat[0]
println mat.group()

def map = [0:1,1:2,(null):3]
println map['null']

def nullli = null
def list = [1]
println nullli + list